package Map.Test;

import java.util.ArrayList;
import java.util.Scanner;

public class mooc {
    public static void main(String args[]) {
        Scanner s1 = new Scanner(System.in);
        String s = ((s1.nextLine()).toLowerCase()).replaceAll("[^a-zA-Z]", "");
        String s2 = "abcdefghijklmnopqrstuvwxyz";
        ArrayList list = new ArrayList();
        for (int i = 0; i < s2.length(); i++) {
            int count = 0;
            for (int j = 0; j < s.length(); j++) {
                if (s2.charAt(i) == s.charAt(j)) {
                    count++;
                }
            }
            if (count > 0) {
                list.add(s2.charAt(i) + "=" + count);
            }
        }
        if (list.size() > 0) {
            for (int i = 0; i < list.size() - 1; i++) {
                System.out.print(list.get(i) + "  ");
            }
            System.out.print(list.get(list.size() - 1));
        }
    }
}


